ԺĳʵʱὫйܸĳɡࡱʵ֡

/************************û*****************************/
function name_pass(){
	global $username,$password,$user_file;

	if($username==""){echo"<meta http-equiv=refresh content=7;URL='javascript:history.back(1);'><br><br><br><br><font size=3><font color=ff0000>û</font></font><br><a href=javascript:history.go(-1);></a><br><br><br>δע<a href=reg.php>[ע]</a>";exit;}
	if($password==""){echo"<meta http-equiv=refresh content=5;URL='javascript:history.back(1);'><br><br><br><br><font size=3><font color=ff0000>û</font></font><br><a href=javascript:history.go(-1);></a>";exit;}

	$user_array=file($user_file);
	$user_all=count($user_array);

	for($i=0; $i<$user_all; $i++) {
list($username1,$password1,$qq1,$email1,$user_team1,$lv1,$zhiwu1,$jiangzhang1,$jilu1,$wenzhang1,$exp1,$money1,$homepage1,$sex1,$name1,$birthday1,$tel1,$locus1,$job1,$school1,$hobby1,$face1,$history1)=explode("|",$user_array[$i]);
		if ($username == $username1){if (md5($password) != $password1){echo"<br><br><br><br><font size=3 color=ff0000>û벻ƥ䣡</font>";exit;}break;}
		if (($username != $username1) and ($i==$user_all-1)){echo"<br><br><br><br><font size=3>û<font color=ff0000>{$username}</font>ûҵ</font>";exit;}
	}

}

/************************֪Ĺ*****************************/